/**
 * @method usePxToVwView px转换vw
 * @param px {Number | String} 需要转换的px值
 * @returns {String} 转换后的值
 * */
const usePxToVwView = (px: string | number): string => {
	const pxValue = typeof px === "string" ? parseFloat(px) : px
	const transformVw = pxValue / (375 / 100)
	return `${transformVw.toFixed(5)}vw`
}

export default usePxToVwView
